#include "../../common/dms.hpp"
#include "gflags/gflags.h"
#include "../../common/logger.hpp"
DEFINE_string(key_id,"LTAI5tBBh8dm3qEAaQXVA24E","平台访问密钥id");
DEFINE_string(key_secret,"1Joq1MwWUQ8bDdu3OJubbXeC98v98K","平台访问密钥");

DEFINE_bool(run_mode, false, "程序运行模式:true为发布模式,false为调试模式");
DEFINE_string(log_file, "", "发布模式中,用于存放日志的文件路径");
DEFINE_int32(log_level, 0, "发布模式中,日志输出等级");
int main(int argc,char* argv[])
{
     google::ParseCommandLineFlags(&argc, &argv, true);
    init_logger(FLAGS_run_mode, FLAGS_log_file, FLAGS_log_level);
    DMSClient client(FLAGS_key_id,FLAGS_key_secret);
    if(!client.Send("15357557903","1234"))
    {
        LOG_ERROR("短信验证码发送失败");
    }
    return 0;
}